package cn.com.smartdevices.bracelet.chart.base;

import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Shader;
import android.graphics.Shader.TileMode;

/* renamed from: cn.com.smartdevices.bracelet.chart.base.i */
public class BitmapRenderer extends Renderer { // C0755i
    Bitmap f3960a;
    Shader f3961b;

    public BitmapRenderer(Bitmap bitmap) {
        this.f3960a = bitmap;
        this.f3958c = new Paint();
        this.f3961b = new BitmapShader(this.f3960a, TileMode.REPEAT, TileMode.CLAMP);
        this.f3958c.setShader(this.f3961b);
    }

    public int getHeight () { // m8641a
        return this.f3960a.getHeight();
    }

    public void setScale (float f, float f2) { // m8642a
        Matrix matrix = new Matrix();
        matrix.setScale(f, f2);
        this.f3961b.setLocalMatrix(matrix);
    }

    public void setBitmap (Bitmap bitmap) { // m8643a
        this.f3958c.setShader(new BitmapShader(bitmap, TileMode.REPEAT, TileMode.CLAMP));
    }

    public int getWidth () { // m8644b
        return this.f3960a.getWidth();
    }
}
